package com.mall.shop.entity.product;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * 商品评价(SpuComment)表实体类
 *
 * @author 龙茶清欢
 * @since 2023-01-16 15:11:28
 */
@Getter
@Setter
@TableName("pms_spu_comment")
@Schema(name = "商品评价实体", description = "商品评价映射")
public class SpuComment implements Serializable {
    private static final long serialVersionUID = 630174095799879024L;

    @TableId(value = "id" , type = IdType.AUTO)
    @Schema(description = "id")
    private Long id;

    @TableField(value = "sku_id")
    @Schema(description = "sku_id")
    private Long skuId;
    
    @TableField(value = "spu_id")
    @Schema(description = "spu_id")
    private Long spuId;
    
    @TableField(value = "spu_name")
    @Schema(description = "商品名字")
    private String spuName;
    
    @TableField(value = "member_nick_name")
    @Schema(description = "会员昵称")
    private String memberNickName;
    
    @TableField(value = "star")
    @Schema(description = "星级")
    private Integer star;
    
    @TableField(value = "member_ip")
    @Schema(description = "会员ip")
    private String memberIp;
    
	@TableField(value = "create_time" , fill = FieldFill.INSERT)
    @Schema(description = "创建时间")
    private Date createTime;
    
    @TableField(value = "show_status")
    @Schema(description = "显示状态[0-不显示，1-显示]")
    private Integer showStatus;
    
    @TableField(value = "spu_attributes")
    @Schema(description = "购买时属性组合")
    private String spuAttributes;
    
    @TableField(value = "likes_count")
    @Schema(description = "点赞数")
    private Integer likesCount;
    
    @TableField(value = "reply_count")
    @Schema(description = "回复数")
    private Integer replyCount;
    
    @TableField(value = "resources")
    @Schema(description = "评论图片/视频[json数据；[{type:文件类型,url:资源路径}]]")
    private String resources;
    
    @TableField(value = "content")
    @Schema(description = "内容")
    private String content;
    
    @TableField(value = "member_icon")
    @Schema(description = "用户头像")
    private String memberIcon;
    
    @TableField(value = "comment_type")
    @Schema(description = "评论类型[0 - 对商品的直接评论，1 - 对评论的回复]")
    private Integer commentType;
    
}

